#include <jni.h>
#include "HelloWorld.h"
#include <stdio.h>

JNIEXPORT void JNICALL 
Java_HelloWorld_sayHello(JNIEnv *env, jobject obj, jstring name)
{
  jboolean iscopy;
  const char *charsname = (*env)->GetStringUTFChars(
                env, name, &iscopy);
  printf("Hello ");
  printf(charsname);
  printf(", this is your first JNI library\n");
  return;
}